package com.sunfeng.netty.test.netty;

import io.netty.util.NettyRuntime;
import io.netty.util.internal.SystemPropertyUtil;

/**
 * @author 孙峰
 * @Description: TODO
 * @date 2020/12/3 14:01
 */
public class Demo {
    public static void main(String[] args) {
        System.out.println(SystemPropertyUtil.getInt(
                "io.netty.eventLoopThreads", NettyRuntime.availableProcessors() * 2));
        System.out.println(NettyRuntime.availableProcessors());
    }
}
